package com.xrui.hbaseview.ui;

import com.xrui.hbaseview.ui.views.DesignerView;

import javax.swing.*;

/**
 * This is a listener interface that allows to register for tab action events.
 */
public interface TabActionListener {

    /**
     * The method is called each time the tab of {@link JTabbedPane} is closed by the user.
     */
    void onTabClosed(DesignerView closingView);

    /**
     * The method is called each time the tab of {@link JTabbedPane} is being duplicated by the user.
     */
    void onTabDuplicated(DesignerView sourceView);
}
